# sparse_mlpl/Makefile


BIN     = ../Debug

INC     = -I.

CC      = gcc
DEFINES = -DUSE_DEBUG -DNDEBUG
CFLAGS  = -O2 $(DEFINES) $(INC)
TARGET     = sparse_mlpl.exe

OBJS    = main.o  sparse_matrix.o 
SRCS = $(OBJS:%.o=%.c) 

LIBS 	= 

all: $(TARGET) 

$(TARGET): $(OBJS) $(MYLIB)
	$(CC) $(OBJS) $(LIBS) -o $(TARGET)

install: 
	cp $(TARGET) $(BIN)
	
clean:
	/bin/rm $(OBJS) $(TARGET)

depend: $(SRC)
	$(CC) $(DEFINES) $(INC) -M $(SRC) > makedep
	echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
	echo '$$r makedep' >>eddep
	echo 'w' >>eddep
	ed - Makefile < eddep
	rm eddep makedep
	echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
	echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
	echo '# see make depend above' >> Makefile
#----------------------------------------------------------------- 
# DO NOT DELETE THIS LINE -- make depend uses it
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see make depend above
